// This file was procedurally generated from the following sources:
// - src/assignment-target-type/callexpression.identifiername.case
// - src/assignment-target-type/simple/complex/default.template
/*---
description: Static Semantics AssignmentTargetType, Return simple (Simple Direct assignment)
flags: [generated]
info: |
    CallExpression . IdentifierName
    Static Semantics AssignmentTargetType, Return simple

---*/


function Test() {
    let v = 'v';
    let o = { [v]: 1, f() {} };
    let f = () => o;

    f().IdentifierName = 1;
}

// preheat
const NUMBER_OF_PREHEAT = 1;
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}

ArkTools.jitCompileAsync(Test);
assert.sameValue(ArkTools.waitJitCompileFinish(Test), true, '[JIT] JIT disabled.');

// test
const NUMBER_OF_TEST = 1; // or 2
for (let i = 0; i < NUMBER_OF_TEST; i++) {
    Test();
}
